﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Visual/Template/padrao.master" AutoEventWireup="true" CodeFile="ListSubtype.aspx.cs" Inherits="Visual_CRUD_Subtype_ListSubtype" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../../../Styles/interfacemetro/css/modern.css" rel="stylesheet" type="text/css" />
    <link href="../../../Styles/interfacemetro/css/modern-responsive.css" rel="stylesheet"
        type="text/css" />
        <link href="../../../Styles/menustyles.css" rel="stylesheet" type="text/css"/>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="header" runat="server">
    <h1>
        Subtype List</h1>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ConteudoDinamico" runat="server">
    <a class="shortcut" onclick="document.getElementById('advancedsearch').style.display='block';">
        <span class="icon"><i class="icon-search"></i></span>
        <br />
        <span class="label">Search </span></a><a class="shortcut" href="AddSubtype.aspx"><span
            class="icon"><i class="icon-plus"></i></span>
            <br />
            <span class="label">New Subtype </span></a>
    <br />
    <div class="table hovered ">
        <asp:GridView ID="GridSubtypes" runat="server" AllowPaging="True" 
            AllowSorting="True" AutoGenerateColumns="False" DataSourceID="DSSubtypes" 
            onselectedindexchanged="Excluindo" style="text-align: center">
            <Columns>
                <asp:BoundField DataField="id" HeaderText="ID" SortExpression="id" />
                <asp:BoundField DataField="description" HeaderText="Description" 
                    SortExpression="description" />
                <asp:BoundField DataField="organism" HeaderText="Organism" 
                    SortExpression="organism" />
                <asp:CommandField ButtonType="Image" 
                    SelectImageUrl="~/Visual/Imagens/empty_trash.png" ShowSelectButton="True" />
            </Columns>
        </asp:GridView>
        <asp:ObjectDataSource ID="DSSubtypes" runat="server" 
            SelectMethod="selectforgridviewer" TypeName="VSDBM.Code.dao.SubtypeDAO">
            <SelectParameters>
                <asp:Parameter Name="filtros" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <br />
    </div>
    <div class="message-dialog" id="advancedsearch" style="display: none; background-color: #2d89f0">
        <br />
        <table style="width: 100%;">
            <tr>
                <td class="style1" rowspan="2">
                    <a class="shortcut" onclick="document.getElementById('advancedsearch').style.display='none';">
                        <span class="icon"><i class="icon-cancel"></i></span><span class="label">Close </span>
                    </a>
                </td>
                <td class="style2">
                    <asp:Label ID="Label1" runat="server" Text="Label">Search(Description / Organism)</asp:Label>
                    <td>
                        &nbsp;
                    </td>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <div class="input-control text">
                        <asp:TextBox ID="txtterm" runat="server" Style="margin-left: 0px" Width="500px"></asp:TextBox>
                        <asp:Button ID="btsearch" runat="server" Text="Search" onclick="search_click" />
                    </div>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>

